package com.qing.web_freemarke.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 日志记录
 */
public class WebLogEntity {

	private Integer id;

	private String url;

	private String descriptions;

	private String httpMethod;

	private String classMethod;

	private String ip;

	private String requestArgs;

	private String responseArgs;

	private Integer timeConsuming;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date lastModifyDate;


	public WebLogEntity() {
	}

	public WebLogEntity(Integer id, String url, String descriptions, String httpMethod, String classMethod, String ip, String requestArgs, String responseArgs, Integer timeConsuming, Date lastModifyDate) {
		this.id = id;
		this.url = url;
		this.descriptions = descriptions;
		this.httpMethod = httpMethod;
		this.classMethod = classMethod;
		this.ip = ip;
		this.requestArgs = requestArgs;
		this.responseArgs = responseArgs;
		this.timeConsuming = timeConsuming;
		this.lastModifyDate = lastModifyDate;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getDescriptions() {
		return descriptions;
	}

	public void setDescriptions(String descriptions) {
		this.descriptions = descriptions;
	}

	public String getHttpMethod() {
		return httpMethod;
	}

	public void setHttpMethod(String httpMethod) {
		this.httpMethod = httpMethod;
	}

	public String getClassMethod() {
		return classMethod;
	}

	public void setClassMethod(String classMethod) {
		this.classMethod = classMethod;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getRequestArgs() {
		return requestArgs;
	}

	public void setRequestArgs(String requestArgs) {
		this.requestArgs = requestArgs;
	}

	public String getResponseArgs() {
		return responseArgs;
	}

	public void setResponseArgs(String responseArgs) {
		this.responseArgs = responseArgs;
	}

	public Integer getTimeConsuming() {
		return timeConsuming;
	}

	public void setTimeConsuming(Integer timeConsuming) {
		this.timeConsuming = timeConsuming;
	}

	public Date getLastModifyDate() {
		return lastModifyDate;
	}

	public void setLastModifyDate(Date lastModifyDate) {
		this.lastModifyDate = lastModifyDate;
	}
}
